package cn.cstor.mailtest.controller;

import cn.cstor.mailtest.service.UserService;
import cn.cstor.mailtest.util.AjaxResult;
import cn.cstor.mailtest.vo.CodeUpdatePwdVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 人员信息 前端控制器
 * @author zzw
 * @date 2022-05-03
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;
    /**
     * 验证码重置密码
     */
    @PostMapping("/codeUpdatePwd")
    public AjaxResult codeUpdatePwd(@RequestBody CodeUpdatePwdVo codeUpdatePwdVo){
        return userService.codeUpdatePwd(codeUpdatePwdVo);
    }
}
